﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
       "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="../style.css">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body>


<form action="ranking_anlegen_v.php" method="post">

<table>

<?php

	include("../inc/joomlaInt_admin.php");
	include("../inc/inc_configuration.php");

if ($jUser==0)
{
	echo "Bitte zuerst einloggen!";
}
else
{	
	
	$q="SELECT gid FROM $tbl_users WHERE id=$jUser";
					$qe=mysql_query($q);
					$qeo=mysql_fetch_object($qe);
					
					$gid=$qeo->gid;
					
					if ($gid!=$admingroup)
					{
						echo "Du bist kein Admin!";
						break;
					}
					
	$liga=$_GET["liga"];
	
	$_SESSION["liga"]=$liga;
	
	echo'<tr>
			<td>Von Platz:</td>
			<td><input type="text" name="start" Size="2"></td>
		</tr>
		<tr>
			<td>Bis Platz:</td>
			<td><input type="text" name="end" Size="2"></td>
		</tr>';
	
	
	
	
	echo '<tr>
			<td>Farbe:</td>
			<td><select name="color" Size="1">
					<option Value="#7cfc00">Grün</option>
					<option Value="#adff2f">Grün-Gelb</option>
					<option Value="#1e90ff">Blau</option>
					<option Value="#00bfff">Himmelblau</option>
					<option Value="#F78181">Hell-Rot</option>
					<option Value="#FA5858">Rot</option>
			</select></td>
		</tr>';
	
	echo'<tr>
			<td>Text:</td>
			<td><input type="text" name="text" Size="20"></td>
		</tr>';

echo '	</table>
		<br>
		<input type="submit" value="Hinzufügen" class="button anlegen">
		</form>';

echo "<center><a href='rankings.php?liga=",$liga,"' class='button zurueck'>Zurück</a></center>";
}
?>
</body>
</html>

